package org.pedia2.apps.demo.helloworld.client;

import java.util.List;

import org.pedia2.apps.demo.helloworld.client.model.City;
import org.pedia2.apps.demo.helloworld.client.model.Taxi;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService{

	String greetServer(String name);

	public City createCity(String name);

	/**
	 * Lista de orase definite
	 */
	public List<City> getCityList();

	public Taxi createTaxi(String taxiCompanyName, String taxiCompanyPhone, String cityId);

	public List<Taxi> getAllTaxiList();

	public List<Taxi> getTaxiListForCity(String cityId);

	public Taxi updateTaxi(String taxiId, String taxiCompanyName, String taxiCompanyPhone);

	public Taxi changeCityOfTaxi(String taxiId, String cityId);

	public Taxi getTaxi(String taxiId);

	public City getCity(String cityId);
}
